﻿using System;
using System.Globalization;
using System.Windows.Data;

namespace DeepmixRadioClient.Workflow
{
    public class TimeToMoscowTimeTextConverter : IValueConverter
    {
        private readonly TimeSpaneConverter _converter = new TimeSpaneConverter();

        public object Convert(object value, Type targetType, object parameter, CultureInfo culture)
        {
            return string.Format(AppResources.MoscowTimeIs, _converter.Convert(value, null, null, null));
        }

        public object ConvertBack(object value, Type targetType, object parameter, CultureInfo culture)
        {
            throw new InvalidOperationException();
        }
    }
}